from selenium import webdriver
import os, time

# 简单元素懆作
chromedriver = "C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe"  # 浏览器驱动位置
os.environ["webdriver.chrome.driver"] = chromedriver
driver = webdriver.Chrome(chromedriver)
driver.get('http://www.baidu.com')
input1 = driver.find_element_by_id("kw")
print(input1.size)
print(input1.text)
print(input1.get_attribute('maxlength'))
print(input1.is_displayed())
driver.quit()
